package com.pth.admin.action;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.pth.model.Exam;
import com.pth.service.ExamService;

@SuppressWarnings("serial")
public class ExamAllAction extends ActionSupport {

	private ExamService examService;
	private List<Exam> exams;
	public ExamService getExamService() {
		return examService;
	}

	public void setExamService(ExamService examService) {
		this.examService = examService;
	}

	
	
	@Override
	public String execute() throws Exception {

	
		exams=examService.getAllExams();
		
		return SUCCESS;
	}

	public List<Exam> getExams() {
		return exams;
	}

	public void setExams(List<Exam> exams) {
		this.exams = exams;
	}
	
}
